package com.example.tetstmybatis.mapper;

import com.example.tetstmybatis.domain.Test1;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
@Repository
public interface TestMapper {
    public List<Test1> findall();

    //增删改查
   public Test1 queryTestById(int id);
   //添加数据
   public int insertTest1(Test1 test1);
   //ig

   public int updateTest(Test1 test1);
   //修改数据

   public  int deleteTest(int id);




}
